package project.bank.model;

import project.bank.utilities.Common;

import com.finco.account.BaseAccount;

public class BankAccountFactory {

	public BaseAccount getAccount(int type) {
		switch(type) {
		case Common.AccountType.CHECKING:
			return new AccountChecking();
		case Common.AccountType.SAVINGS:
			return new AccountSavings();

		}
		return null;
	}
}
